import request from '@/utils/request'

// 查询通知列表
export function listNoticeAll(query) {
  return request({
    url: '/client/notice/all-list-user',
    method: 'get',
    params: query
  })
}

// 查询通知列表
export function listAdminNoticeAll(query) {
  return request({
    url: '/system/notice/all-list-admin',
    method: 'get',
    params: query
  })
}

// 确认已读(学生用)
export function sureSotificationById(noticeId) {
  return request({
    url: '/client/notice/' + noticeId,
    method: 'put'
  })
}

export function adminSureSotificationById(noticeId) {
  return request({
    url: '/system/notice/' + noticeId,
    method: 'put'
  })
}